package com.tjec.project.portal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tjec.project.portal.mapper.BmsNotesStakeholderMapper;
import com.tjec.project.portal.domain.BmsNotesStakeholder;
import com.tjec.project.portal.service.IBmsNotesStakeholderService;

/**
 * 便签干系人Service业务层处理
 * 
 * @author liuxu
 * @date 2020-05-13
 */
@Service
public class BmsNotesStakeholderServiceImpl implements IBmsNotesStakeholderService 
{
    @Autowired
    private BmsNotesStakeholderMapper bmsNotesStakeholderMapper;

    /**
     * 查询便签干系人
     * 
     * @param stakeholderId 便签干系人ID
     * @return 便签干系人
     */
    @Override
    public BmsNotesStakeholder selectBmsNotesStakeholderByGuid(String stakeholderId)
    {
        return bmsNotesStakeholderMapper.selectBmsNotesStakeholderByGuid(stakeholderId);
    }

    /**
     * 查询便签干系人列表
     * 
     * @param bmsNotesStakeholder 便签干系人
     * @return 便签干系人
     */
    @Override
    public List<BmsNotesStakeholder> selectBmsNotesStakeholderList(BmsNotesStakeholder bmsNotesStakeholder)
    {
        return bmsNotesStakeholderMapper.selectBmsNotesStakeholderList(bmsNotesStakeholder);
    }

    /**
     * 新增便签干系人
     * 
     * @param bmsNotesStakeholder 便签干系人
     * @return 结果
     */
    @Override
    public int insertBmsNotesStakeholder(BmsNotesStakeholder bmsNotesStakeholder)
    {
        return bmsNotesStakeholderMapper.insertBmsNotesStakeholder(bmsNotesStakeholder);
    }

    /**
     * 修改便签干系人
     * 
     * @param bmsNotesStakeholder 便签干系人
     * @return 结果
     */
    @Override
    public int updateBmsNotesStakeholder(BmsNotesStakeholder bmsNotesStakeholder)
    {
        return bmsNotesStakeholderMapper.updateBmsNotesStakeholder(bmsNotesStakeholder);
    }

    /**
     * 批量删除便签干系人
     * 
     * @param notesIds 需要删除的便签ID
     * @return 结果
     */
    @Override
    public int deleteBmsNotesStakeholderByGuids(String[] notesIds)
    {
        return bmsNotesStakeholderMapper.deleteBmsNotesStakeholderByGuids(notesIds);
    }

    /**
     * 删除便签干系人信息
     * 
     * @param notesId 便签ID
     * @return 结果
     */
    @Override
    public int deleteBmsNotesStakeholderByGuid(String notesId)
    {
        return bmsNotesStakeholderMapper.deleteBmsNotesStakeholderByGuid(notesId);
    }
}
